import java.awt.CardLayout;
import java.awt.FlowLayout;
import java.awt.Menu;

import javax.swing.*;
public class MainGUI extends JFrame{
	
	JPanel mainPanel = new JPanel();
	public MainGUI() {
		super("相关数据搜索工具");
		setSize(450,700);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		CardLayout cl = new CardLayout();
		IOGUI IO_Card = new IOGUI(cl,mainPanel);
		mainPanel.setLayout(cl);
		OpenFileGUI File_Card = new OpenFileGUI(cl,mainPanel,IO_Card);
		mainPanel.add(File_Card,"File Card");
		//测试代码--开始
		//测试代码--结束
		mainPanel.add(IO_Card,"IO Card");
		
		cl.show(mainPanel, "File Card");
		
		add(mainPanel);
		setVisible(true);
	}
	public static void main(String[] args) {
		MainGUI m = new MainGUI();
	}
}
